home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 19 / CU Amiga Magazine's Super CD-ROM 19 (1998)(EMAP Images)(GB)[!][issue 1998-02].iso / CUCD / Graphics / Gallery / Source / PrefsWindow.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1997-11-20  |  3.4 KB  |  113 lines

  1. #ifndef    PREFSWINDOW_HPP
  2. #define    PREFSWINDOW_HPP
  3.  
  4. // $VER: PrefsWindow.hpp 39.5 (09.11.97)
  5. //
  6. //
  7. // (C) Copyright 1996,97 Markus Hillenbrand
  8. //     All Rights Reserved, No Warranty
  9.  
  10. #include "GUIC_Window.hpp"
  11.  
  12. class GUIC_ApplicationC;
  13. class GUIC_OldButtonC;
  14. class GUIC_CheckboxC;
  15. class GUIC_CycleC;
  16. class GUIC_ColorMixerC;
  17. class GUIC_EventC;
  18. class GUIC_FileStringC;
  19. class GUIC_FontC;
  20. class GUIC_FontRequesterC;
  21. class GUIC_FrameC;
  22. class GUIC_OldLabelC;
  23. class GUIC_PathStringC;
  24. class GUIC_RadioC;
  25. class GUIC_RegisterC;
  26. class GUIC_ScreenC;
  27. class GUIC_ScreenRequesterC; 
  28. class GUIC_SlidingIntegerC;
  29. class GUIC_StringC;
  30. class GUIC_TextC;
  31.  
  32. class PrefsWindowC     : public GUIC_WindowC
  33.     {
  34.     public:
  35.         PrefsWindowC                            (GUIC_ApplicationC &app, GUIC_ScreenC &screen, GUIC_ScreenRequesterC &sReq, GUIC_FontRequesterC &fReq);
  36.         ~PrefsWindowC                             (VOID);
  37.                 
  38.         STRPTR            getClass                (VOID);        
  39.         BOOL             action                    (GUIC_EventC &event);
  40.         VOID                setPrefs                (VOID);
  41.         VOID                windowClosed    (GUIC_WindowC *win);
  42.  
  43.     protected:
  44.         VOID                cleanUp                         (VOID);
  45.         
  46.     private:
  47.         VOID                setFont                    (VOID);
  48.         VOID                setScreen                (VOID);
  49.     
  50.         static BOOL    hexToLong                (CHAR c, LONG &l);
  51.         static BOOL     convertHEXToRGB    (STRPTR hex, LONG &r, LONG &g, LONG &b);
  52.         static BOOL     convertRGBToHEX    (LONG r, LONG g, LONG b, STRPTR *hex);
  53.         
  54.         GUIC_ApplicationC             *app;
  55.         GUIC_ScreenC                 *screen;
  56.         GUIC_ScreenRequesterC    *screenRequester;
  57.         GUIC_FontRequesterC        *fontRequester;
  58.         GUIC_FixedFontC            *fixedFont;
  59.         GUIC_ColorMixerC            *colorMixer;
  60.         
  61.         GUIC_RegisterC                *reg;
  62.  
  63.         // Teil 1: GUI
  64.         GUIC_FrameC                    *fr_screen, *fr_font;
  65.         GUIC_CheckboxC            *cb_public, *cb_own, *cb_font;
  66.         GUIC_OldLabelC                *la_public, *la_own, *la_font;
  67.         GUIC_StringC                    *st_public;
  68.         GUIC_TextC                        *tx_own, *tx_font;
  69.         GUIC_OldButtonC            *bt_own, *bt_font;
  70.         
  71.         // Teil 2: Misc
  72.         GUIC_FrameC                    *fr_paths, *fr_shell, *fr_priority;
  73.         GUIC_OldLabelC                *la_thumbnailPath, *la_temporaryPath, *la_shellCommand, *la_priority;
  74.         GUIC_PathStringC            *ps_thumbnailPath, *ps_temporaryPath;
  75.         GUIC_SlidingIntegerC        *si_priority;
  76.         GUIC_StringC                    *st_shellCommand;
  77.         GUIC_CheckboxC            *cb_priority;
  78.         
  79.         // Teil 3: Thumbnails
  80.         GUIC_FrameC                    *fr_thumbnails;
  81.         GUIC_OldLabelC                *la_thumbnailWidth, *la_thumbnailHeight, *la_thumbnailHide, *la_quality, *la_thumbnailDelete;
  82.         GUIC_SlidingIntegerC        *si_thumbnailWidth, *si_thumbnailHeight, *si_quality;
  83.         GUIC_CheckboxC            *cb_thumbnailHide, *cb_thumbnailDelete;
  84.         
  85.         // Teil 4: HTML
  86.         GUIC_FrameC                    *fr_html;
  87.         GUIC_OldLabelC                *la_pattern1, *la_pattern2, *la_sound1, *la_sound2, *la_filename, *la_frameWidth, *la_frames, *la_up, *la_right, *la_left;
  88.         GUIC_FileStringC                *fs_pattern1, *fs_pattern2, *fs_sound1, *fs_sound2, *fs_up, *fs_right, *fs_left;
  89.         GUIC_StringC                    *st_filename;
  90.         GUIC_CycleC                    *cy_suffix;
  91.         GUIC_SlidingIntegerC        *si_frameWidth;
  92.         GUIC_CheckboxC            *cb_frames;
  93.         
  94.         // Teil 5: Tables
  95.         GUIC_FrameC                    *fr_table;
  96.         GUIC_OldLabelC                *la_tableLines, *la_tableColumns, *la_showSize, *la_showDate, *la_showDimensions, *la_tableBorderSize, *la_tableColor1, *la_tableColor2;
  97.         GUIC_SlidingIntegerC        *si_tableLines, *si_tableColumns, *si_tableBorderSize;
  98.         GUIC_CheckboxC            *cb_showSize, *cb_showDate, *cb_showDimensions;
  99.         GUIC_StringC                    *st_tableColor1, *st_tableColor2;
  100.         GUIC_OldButtonC            *bt_tableColor1, *bt_tableColor2;
  101.         
  102.         // andere Variablen
  103.         LONG                             color;
  104.         
  105.         friend class MainWindowC;
  106.         friend class ManagerWindowC;
  107.         friend class CompareWindowC;
  108.         friend class HTMLWindowC;
  109.     };
  110.  
  111. #endif
  112.  
  113.